package cn.fdaxy.shop.service.weixin.mp.utils;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

/**
 * @ClassName JsonUtils
 * @Description TODO
 * @Author liaofd
 * @Date 2019/7/24 15:57
 * @Version 1.0
 */
public class JsonUtils {
    public static String toJson(Object obj) {
        Gson gson = new GsonBuilder().setPrettyPrinting().create();
        return gson.toJson(obj);
    }
}
